#ifndef LEPPBISECTION_H_
#define LEPPBISECTION_H_

#include "refinementalgorithm.h"
#include "../../geom/triangle.h"

class LeppBisection : public RefinementAlgorithm
{
protected:
	enum {FIRST_NON_SHARED=0,SECOND_NON_SHARED=1,SHARED=2};
	enum {T=0,U=1};
	virtual void processTriangle(Triangle *t);
	void refineTriangle(Triangle *t, Triangle *u);
public:
	LeppBisection(Mesh *m,SelectionCriterion *c);
	virtual void processMesh();
	virtual ~LeppBisection();
};

#endif /*LEPPBISECTION_H_*/
